package com.baidu.mpks.backendweb.source.dao;

import com.baidu.mpks.backendweb.source.domain.DataSourceStatisticDayDto;
import com.baidu.mpks.backendweb.source.domain.DataSourceStatisticDayInfo;
import com.baidu.mpks.backendweb.source.domain.DataSourceStatisticDayTrendVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface DataSourceStatisticDayDao {

    public Integer insertDataStatistic(DataSourceStatisticDayDto dataSourceStatisticDayDto);

    public Integer updateDataStatistic(DataSourceStatisticDayDto dataSourceStatisticDayDto);

    public List<DataSourceStatisticDayInfo> findContentTypeDataByDate(@Param("contentTypes") List<String> contentTypes,
                                                                      @Param("date") Date date);

    public List<DataSourceStatisticDayInfo> findInputTypeData(DataSourceStatisticDayDto dataSourceStatisticDayDto);

    public List<DataSourceStatisticDayTrendVO> findTrendData(DataSourceStatisticDayDto dataSourceStatisticDayDto);
}